package com.keshan.mapper;

import com.keshan.pojo.BloodOxygen;
import com.keshan.pojo.BloodOxygenDayAvg;
import com.keshan.pojo.BloodOxygenExample;

import java.util.Date;
import java.util.List;

import com.keshan.pojo.BloodOxygenHide;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository(value="BloodOxygenMapper")
public interface BloodOxygenMapper {
    int countByExample(BloodOxygenExample example);

    int deleteByExample(BloodOxygenExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BloodOxygen record);

    int insertSelective(BloodOxygen record);

    List<BloodOxygen> selectByExample(BloodOxygenExample example);

    List<BloodOxygenHide> selectHideByExample(BloodOxygenExample example);

    BloodOxygen selectByPrimaryKey(Integer id);


    int updateByExampleSelective(@Param("record") BloodOxygen record, @Param("example") BloodOxygenExample example);

    int updateByExample(@Param("record") BloodOxygen record, @Param("example") BloodOxygenExample example);

    int updateByPrimaryKeySelective(BloodOxygen record);

    int updateByPrimaryKey(BloodOxygen record);

    List<BloodOxygenDayAvg> selectEverydayAvg(@Param("beginTime") Date beginTime,
                                              @Param("endTime")Date endTime,
                                              @Param("username")String username);
}